/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proy;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *
 * @author ROBERT
 */
@Entity
@Table(name = "lista", catalog = "inmaes", schema = "public")
@NamedQueries({
    @NamedQuery(name = "Lista.findAll", query = "SELECT l FROM Lista l"),
    @NamedQuery(name = "Lista.findById", query = "SELECT l FROM Lista l WHERE l.id = :id"),
    @NamedQuery(name = "Lista.findByD10", query = "SELECT l FROM Lista l WHERE l.d10 = :d10"),
    @NamedQuery(name = "Lista.findByD12", query = "SELECT l FROM Lista l WHERE l.d12 = :d12"),
    @NamedQuery(name = "Lista.findByD13", query = "SELECT l FROM Lista l WHERE l.d13 = :d13"),
    @NamedQuery(name = "Lista.findByD15", query = "SELECT l FROM Lista l WHERE l.d15 = :d15"),
    @NamedQuery(name = "Lista.findByD17", query = "SELECT l FROM Lista l WHERE l.d17 = :d17"),
    @NamedQuery(name = "Lista.findByD19", query = "SELECT l FROM Lista l WHERE l.d19 = :d19"),
    @NamedQuery(name = "Lista.findByD22", query = "SELECT l FROM Lista l WHERE l.d22 = :d22"),
    @NamedQuery(name = "Lista.findByD27", query = "SELECT l FROM Lista l WHERE l.d27 = :d27"),
    @NamedQuery(name = "Lista.findByDss", query = "SELECT l FROM Lista l WHERE l.dss = :dss")})
public class Lista implements Serializable {
    @Transient
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "d10")
    private Double d10;
    @Column(name = "d12")
    private Double d12;
    @Column(name = "d13")
    private Double d13;
    @Column(name = "d15")
    private Double d15;
    @Column(name = "d17")
    private Double d17;
    @Column(name = "d19")
    private Double d19;
    @Column(name = "d22")
    private Double d22;
    @Column(name = "d27")
    private Double d27;
    @Column(name = "dss")
    private Double dss;

    public Lista() {
    }

    public Lista(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        Integer oldId = this.id;
        this.id = id;
        changeSupport.firePropertyChange("id", oldId, id);
    }

    public Double getD10() {
        return d10;
    }

    public void setD10(Double d10) {
        Double oldD10 = this.d10;
        this.d10 = d10;
        changeSupport.firePropertyChange("D10", oldD10, d10);
    }

    public Double getD12() {
        return d12;
    }

    public void setD12(Double d12) {
        Double oldD12 = this.d12;
        this.d12 = d12;
        changeSupport.firePropertyChange("D12", oldD12, d12);
    }

    public Double getD13() {
        return d13;
    }

    public void setD13(Double d13) {
        Double oldD13 = this.d13;
        this.d13 = d13;
        changeSupport.firePropertyChange("D13", oldD13, d13);
    }

    public Double getD15() {
        return d15;
    }

    public void setD15(Double d15) {
        Double oldD15 = this.d15;
        this.d15 = d15;
        changeSupport.firePropertyChange("D15", oldD15, d15);
    }

    public Double getD17() {
        return d17;
    }

    public void setD17(Double d17) {
        Double oldD17 = this.d17;
        this.d17 = d17;
        changeSupport.firePropertyChange("D17", oldD17, d17);
    }

    public Double getD19() {
        return d19;
    }

    public void setD19(Double d19) {
        Double oldD19 = this.d19;
        this.d19 = d19;
        changeSupport.firePropertyChange("D19", oldD19, d19);
    }

    public Double getD22() {
        return d22;
    }

    public void setD22(Double d22) {
        Double oldD22 = this.d22;
        this.d22 = d22;
        changeSupport.firePropertyChange("D22", oldD22, d22);
    }

    public Double getD27() {
        return d27;
    }

    public void setD27(Double d27) {
        Double oldD27 = this.d27;
        this.d27 = d27;
        changeSupport.firePropertyChange("D27", oldD27, d27);
    }

    public Double getDss() {
        return dss;
    }

    public void setDss(Double dss) {
        Double oldDss = this.dss;
        this.dss = dss;
        changeSupport.firePropertyChange("dss", oldDss, dss);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Lista)) {
            return false;
        }
        Lista other = (Lista) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "proy.Lista[ id=" + id + " ]";
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    
}
